Skip to content

Add Knowledge Harmonization post-processing function type - #177

Open
noamkap wants to merge 1 commit into
forcedotcom:mainfrom
noamkap:nkaplan/knowledge-harmonization-post-processing
Open

noamkap wants to merge 1 commit into
forcedotcom:mainfrom
noamkap:nkaplan/knowledge-harmonization-post-processing

Conversation

@noamkap

@noamkap noamkap commented Nov 23, 2026

Copy link
Copy Markdown

Summary

  • Add KnowledgeHarmonizationPostProcessing as a customer function type: one input object and one output object, matching the utility contract.
  • datacustomcode init -u KnowledgeHarmonizationPostProcessing copies a template whose entrypoint reads request.input.text and returns response.output.text with BYOC APPLIED immediately after <body>.
  • The function default stays SearchIndexChunking. Deploy sends this feature to Connect as KnowledgeHarmonizationPostProcessing.

Test plan

  • Python 3.11: datacustomcode init my_test --code-type function -u KnowledgeHarmonizationPostProcessing
  • datacustomcode run ./payload/entrypoint.py --test-with ./payload/tests/test.json exited 0
  • output.text is the sample HTML with the banner section immediately after <body>. Quarterly Report and Online Remittance Instructions are still present
  • Deploy after sf org login and confirm the package invokes

Local result:

{
  "output": {
    "text": "<html><head><title>Doc</title></head><body><section style=\"font-size:48px;font-weight:bold;text-align:center;padding:24px;border:4px solid #000;\">BYOC APPLIED</section><h1>Quarterly Report</h1><p>Online Remittance Instructions</p></body></html>"
  }
}

Customers can init a file-in, file-out template and run the sample banner locally.
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Noam Kaplan <n***@s***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, refresh the status of this Pull Request.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant